﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Text;
using System.IO;
using System.Web.Mvc;

namespace MvcSite.Models
{

    public class GestoreBase
    {
        protected static string stringConnection = System.Configuration.ConfigurationManager.ConnectionStrings["DBLocale"].ToString();

        public static HttpServerUtilityBase Server;
        public static UrlHelper Url;
        

        public static string GetPathAlbum(string id)
        {
            return Path.Combine("Galleria", id);
        }

        public static string GetPathFromServer(string pathBase)
        {
            return Server.MapPath(pathBase);
        }

    }
}